<extend name="Public:indexEdit"/>

<!-- 清空头部广告 -->
<block name="ad_top"></block>

<!-- 清空电梯 -->
<block name="floor"></block>

<block name='content'>
<link rel='stylesheet' href="__PUBLIC__/Home/css/toastr.min.css"/>
		<div class="details_con">
			<!-- 商品菜单 -->
			<div class="details_con_center">
				<div class="details_con_position">
					<a>当前位置：</a><a href="{:U('Index/index')}"><i>商城首页</i> <span>></span></a><a href="{:U('Index/goods')}"> <i>商城商品列表</i> <span>></span> <i>详情</i></a>
				</div>
				<div class="sett_commodity clearfix">
					<div class="sett_commodity_fl fl">
						<div class="clearfix sett_commodity_parent">
						    <div id="small" class="small fl">
						        <span></span>
						        <img src="{$result.goods.pic_url}">
						    </div>
						    <div id="big" class="big fl">
						        <img src="{$result.goods.pic_url}">
						    </div>
						</div>
						<div class="details_con_image clearfix" id="details_con_image">
							<if condition="!empty($result['goods']['pic_tuji'])">
								<foreach name="result.goods.pic_tuji" key='key' item='value'>
									<a href="javascript:;" class="fl"><img src="{$value}" alt=""></a>
								</foreach>
							</if>
						</div>
						<div class="details_con_service clearfix">
							<php >$count = count($result['goods']['pic_tuji']);</php>
							<for start = '0' name="i"  end="$count">
								<a href="javascript:;" class="fl"></a>
							</for>
							<span class="fl">我们的服务</span>
						</div>
					</div>
					<div class="sett_commodity_center fl">
						<h2 class="title">{$result.goods.title}</h2>
						<div class="price">
							<p>市场价：<span>￥{$result.goods.price_old}</span></p>
							<p>会员价：<span>￥{$result.goods.price_new}</span></p>
						</div>
						<div class="purchase clearfix" id="purchase">
							<span class="fl">购买数量：</span>
							<a href="javascript:;" class="fl active">-</a>
							<input type="text" name="goods_num" value="1" readonly="readonly" class="fl">
							<a href="javascript:;" class="fl">+</a>
							<i class="fl">返利积分({$result.goods.fanli_jifen}积分)</i>
							<span class="fl">库存：{$result.goods.kucun}</span>
						</div>
						<p class="set">套餐选择：</p>
						<div class="collect clearfix">
							<span class="fl collection">收藏
								<form class='form'>
									<input type="hidden" name="form" value="{$form}" addCart="1"/>
									<input type="hidden" name="goods_id" value="{$result.goods.id}" addCart="1">
						            <input type="hidden" name="price_new" id="price_new" value="{$result.goods.price_new}" addCart="1">
						            <input type="hidden" name="pic_url" id="pic_url" value="{$result.goods.pic_url}" >
						            <input type="hidden" name="price_old" value="{$result.goods.price_old}" >
						            <input type="hidden" name="detail_title"  value="{$result.goods.title}" >
				  					<input type="hidden" name="taocan_name"  value="{$result.goods.taocan_name}" noCollection="1" addCart="1">
						            <input type="hidden" name="fanli_jifen"  value="{$result.goods.fanli_jifen}"  noCollection="1" addCart="1" >
								</form>
							</span>
							<a href="javascript:;" class="fl" onclick="javascript:$('#order').submit()">
								立即购买
								<form action="{:U('Cart/before_order')}" method="post" id="order" onsubmit="return order.checkOrder(this)">
									<input type="hidden" name="form" value="{$form}" />
									<input type="hidden" name="goods_id" value="{$result.goods.id}"/>
									<input type="hidden" name="goods_num[{$result.goods.id}]" value="1"/>
									<input type="hidden" name="type" id="type" value="0">
								</form>						</a>
							<a href="javascript:;" class="fl addCart">加入购物车</a>
						</div>
					</div>
					<div class="sett_commodity_fr fl">
						<if condition="!empty($result['list_rexiao'])">
							<foreach name="result['list_rexiao']" item="vo">
								<a href="{:U('goods_details', array('id' => $vo['id']))}"><img src="{$vo.pic_url}" alt="{$vo.title}" width="93" height="98"></a>
								<p>本站优惠价：￥{$vo.price_new}</p>
							</foreach>
						</if>
					</div>
				</div>
				<div class="sett_con clearfix">
					<div class="sett_con_fl fl clearfix">
						<h2 class="fl">同时购买推荐</h2>
						<if condition="!empty($result['list_tuijian'])">
							 <foreach name="result.list_tuijian" item="vo">
								<a href="{:U('goods_detail', array('id' => $vo['id']))}" class="fl"><img src="{$vo.pic_url}" alt="{$vo.title}" width="93" height="98"></a>
							</foreach>
						</if>
					</div>
					<div class="sett_con_fr fl">
						<ul class="sett_con_fr_top fl clearfix" id="sett_con_fr_top">
							<li class="fl active">产品详情</li>
							<li class="fl">产品参数</li>
							<li class="fl">用户评论</li>
						</ul>
						<div class="sett_con_fr_con" id="sett_con_fr_con">
							<div class="centent active">{$result.goods.shuoming}</div>
							<div class="centent">{$result.goods.guige}</div>
							<div class="centent">
							 	<if condition="!empty($result['result_pingjia'])">
							 		<p class="ccontent_edit"><b class="bold Orange1">评价内容共有{:count($result['result_pingjia'])}个评价信息</b></p>
							 		<ul class="commenttitle">
									   <foreach name="result['result_pingjia']" item="vo_pingjia" >
									        <li class="recommend">
									            <p class="p_edit">
													<span>
										 				 用户ID: {$vo_pingjia.user_id}
													  	<if condition="$vo_pingjia['pingjia_status'] == 1"><span class="good_recommend">好评</span></if>
													  	<if condition="$vo_pingjia['pingjia_status'] == 2"><span class="commonly_recommend">中评</span></if>
													  	<if condition="$vo_pingjia['pingjia_status'] == 3"><span class="bad_recommend">差评</span></if>
													</span>
									            </p>
									            <p class='recommend_content'>               
									                <span>评价时间: {$vo_pingjia.pingjia_time|date="Y-m-d H:i:s",###}</span>
									                <span>评价内容: {$vo_pingjia.pingjia_content}</span>
									            </p>
									        </li>
									        <div class='clear_both'></div>
								   		</foreach>
							    	</ul>   
								</if>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
</section>
		<script type="text/javascript" src="__PUBLIC__/Home/js/yisu_settlement.js"></script>
		<script type="text/javascript" src="__PUBLIC__/HOme/js/toastr.min.js"></script>
		<script>var urlCollection = "{:U('User/collection')}";var urlAddCart = "{:U('Cart/add_cart')}"</script>
</block>